#include "bsp.h"



int main(void )
{
	uint64_t i=0;
	uint64_t y=0;
  LED_GPIO_Config();
	OUT_GPIO_Config();
	//KEY_GPIO_Config();
	//USART_Config();
	
	//printf("lianxi");

	
//	Led_R(1);
//	Led_G(1);
	
	while(1)
	{
		
		//if( Key_Scan(Key_GPIO_PORT ,Key_GPIO_PIN)==1)
    i++;
		bsp_DelayMS(5);
		if(i<=10) y=0;
		else if(i<=20) y=1;
		else if(i<=30) y=2;
		else if(i<=40) y=3;
		else if(i<=50) y=4;
		else if(i<=60) y=5;
		else if(i<=70) y=6;
		else if(i<=80) y=7;
		else if(i<=90) y=8;
		else if(i<=100) y=9;
		else if(i<=110) y=10;
		else if(i<=120) y=11;
		else if(i<=130) y=12;
//		
		switch(y)
		{
		case 0: Led_R(0);break;
		case 1: Led_G(0);break;		
		case 2: Out_Sw1(1);break;
		case 3: Out_Sw2(1);break;
		case 4: Out_Sw3(1);break;
		case 5: Out_Sw4(1);break;
		case 11: Led_R(1);break;
		case 10: Led_G(1);break;
		case 9: Out_Sw1(0);break;
		case 8: Out_Sw2(0);break;
		case 7: Out_Sw3(0);break;
		case 6: Out_Sw4(0);break;
		default:i=0,y=0;break ;
		}
	}
		


	
}
	

